import { createStore } from 'vuex'
import mutations from "./mutations";
import actions from "./actions";
import getters from "./getters";
let tags = localStorage.getItem('tagsList')
export default createStore({
    state: {
        permissionList: null /** 所有路由 */,
        sidebarMenu: [] /** 导航菜单 */,
        currentMenu: "" /** 当前active导航菜单 */,
        /* 导航菜单是否折叠 */
        isSidebarNavCollapse: false,
        /* 面包屑导航列表 */
        crumbList: [],
        msgNum:0,
        /* tags标签页列表 */
        tagsList:typeof tags === 'string' ? JSON.parse( tags ) : [{
            "component": () => import("@/views/board/workbench.vue"),
            "path": "/workbench",
            "name":"workbench",
            "meta":{
                "icon": "Monitor",
                "name": "工作台",
            },
        }],
    },
    mutations,
    actions,
    getters,

    
});